<!DOCTYPE HTML>
<html>
<meta name="referrer" content="never">
{% block title %}
    <title>鱼书 - 新财经资讯网旗下品牌</title>
{% endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">

    <link rel="shortcut icon"
          href="{{ url_for('static', filename='images/icon.png') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/base.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}">



{% endblock %}

<body>
{% block navbar %}
    <nav class="navbar navbar-expand-lg navbar-light bg-light navbar-static-top bg-white">
        <div class="container">
            <a class="navbar-brand " href="/">
                <img src="{{ url_for('static', filename='images/logo-yushu.png') }}"/>
            </a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                    aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <!-- Left Side Of Navbar -->
                <ul class="navbar-nav mr-auto">
                    <li class="nav-item dropdown">
                        <form action="{{ url_for('web.search') }}" method="get" class="sidebar-form">
                            <div style="margin-left:30px; margin-top:10px ;" class="col-md-8 input-group">
                                <input name="q" type="text" placeholder="ISBN、图书名称"
                                       class="form-control input-sm">
                                <span class="input-group-btn">
                            <input class="btn btn-search" type="submit" value="搜索"/>
                        </span>
                            </div>
                        </form>
                    </li>
                       <li class="nav-item dropdown">
                        <a class="nav-link" href="{{ url_for('web.index') }}">最近上传</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link" href="{{ url_for('static', filename='images/wish.png') }}">心愿清单</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link" href="{{ url_for('web.index') }}">赠送清单</a>
                    </li>

                    <li class="nav-item dropdown">
                        <a class="nav-link" href="{{ url_for('static', filename='images/fish.png') }}">鱼票</a>
                    </li>
                </ul>
                <ul class="navbar-nav navbar-right">
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.login') }}">登录</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ url_for('web.register') }}">注册</a></li>
                    {% if 1==2 %}

                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
                               data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            </a>
                            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <a class="dropdown-item" href="">个人中心</a>
                                <a class="dropdown-item" href="">编辑资料</a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" id="logout" href="#">
                                    <form action="{{ url_for('web.logout') }}" method="POST">
                                        {{ csrf_field() }}
                                        <button class="btn btn-block btn-danger" type="submit" name="button">退出</button>
                                    </form>
                                </a>
                            </div>
                        </li>
                    {% endif %}
                </ul>
            </div>
        </div>
    </nav>
    {#    <div class="navbar-static-top bg-info">#}
    {#        <div style="padding-top: inherit" class="container">#}
    {#            <form class="form-inline" action="{{ url_for('web.search') }}" method="get">#}
    {#                <div class="flex-vertical-center-height">#}
    {#                    <div class="col-md-2">#}
    {#                        <img src="{{url_for('static', filename='images/logo-yushu.png')}}"/>#}
    {#                    </div>#}
    {#                    <div style="margin-left:30px;" class="col-md-8 input-group">#}
    {#                        <input name="q" type="text" placeholder="ISBN、图书名称"#}
    {#                               class="form-control input-sm">#}
    {#                        <span class="input-group-btn">#}
    {#                            <input class="btn btn-search" type="submit" value="搜索"/>#}
    {#                        </span>#}
    {#                    </div>#}
    {#                </div>#}
    {#            </form>#}
    {#        </div>#}
    {#    </div>#}
    {#    <div class="navbar bg-warning">#}
    {#        <div class="container">#}
    {#            <div class="row">#}
    {#                <div class="nav-item col-md-2 col-md-offset-1">#}
    {#                    <a id="recent" href="{{ url_for('web.index') }}"#}
    {#                       class="flex-vertical-hor-center">#}
    {#                        <img src="{{ url_for('static', filename='images/upload.png') }}"/>#}
    {#                        <span>最近上传</span>#}
    {#                    </a>#}
    {#                </div>#}
    {#                <div class="col-md-2">#}
    {#                    <a id="gifts" href="{{ url_for('web.my_gifts') }}"#}
    {#                       class="flex-vertical-hor-center">#}
    {#                        <img src="{{ url_for('static', filename='images/gift.png') }}"/>#}
    {#                        <span>赠送清单</span>#}
    {#                    </a>#}
    {#                </div>#}
    {#                <div class="col-md-2">#}
    {#                    <a id="wishes" href="{{ url_for('web.my_wish') }}"#}
    {#                       class="flex-vertical-hor-center">#}
    {#                        <img src="{{ url_for('static', filename='images/wish.png') }}"/>#}
    {#                        <span>心愿清单</span>#}
    {#                    </a>#}
    {#                </div>#}
    {#                <div class="col-md-2">#}
    {#                    <a id="pending" href="{{ url_for('web.pending') }}"#}
    {#                       class="flex-vertical-hor-center">#}
    {#                        <img src="{{ url_for('static', filename='images/fish.png') }}"/>#}
    {#                        <span>鱼漂</span>#}
    {#                    </a>#}
    {#                </div>#}
    {#            </div>#}
    {#        </div>#}
    {#    </div>#}
    <div class="container-height flex-vertical-center float-menu">
        {#        {% if not current_user.is_authenticated %}#}
        {#            <div style="float:right">#}
        {#                <a href="{{ url_for('web.login') }}">登录</a>#}
        {#                <a style="margin-left: 40px;" href="{{ url_for('web.register') }}">注册</a>#}
        {#            </div>#}
        {#        {% else %}#}
        {#            <a href="{{ url_for('web.personal_center') }}">{{ current_user.nickname }}的鱼书</a>#}
        {#            <a style="margin-left: 40px;" href="{{ url_for('web.logout') }}">注销</a>#}
        {#        {% endif %}#}
    </div>
{% endblock %}
<div class='container'>
    <div class="col-lg-12">
        {% with messages = get_flashed_messages() %}
            {% for message in messages %}
                {% if message %}
                    <div class="alert alert-warning" role="alert">{{ message }}</div>
                {% endif %}
            {% endfor %}
        {% endwith %}
        {% if form and form.errors %}
            {% for key, error in form.errors.items() %}
                <div class="alert alert-warning" role="alert">{{ error }}</div>
            {% endfor %}
        {% endif %}
    </div>
    {% block content %} {% endblock %}
</div>
<div id="footer" class="flex-hor-center">
    <span>© 2017-2020 created</span>
</div>
</body>

{% block scripts %}
    <script src="{{ url_for('static', filename='3rd/jquery-3.2.1.min.js') }}"></script>
    <script src="{{ url_for('static', filename='3rd/bootstrap.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/base.js') }}"></script>
    <script>
        $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
    </script>
{% endblock %}

</html>